﻿using Acme.BookStore.Books;
using Acme.BookStore.Bookss;
using Acme.BookStore.CommodityTypess;
using Acme.BookStore.Goodss;
using Acme.BookStore.Orderinforss;
using Acme.BookStore.UserInfors;
using AutoMapper;

namespace Acme.BookStore
{
    public class BookStoreApplicationAutoMapperProfile : Profile
    {
        public BookStoreApplicationAutoMapperProfile()
        {
            CreateMap<Book, BookDto>();
            CreateMap<CreateUpdateBookDto, Book>();

            CreateMap<CommodityType, CommodityTypeDto>();
            CreateMap<CreateUpdateCommodityTypeDto, CommodityType>();

            CreateMap<Goods, GoodsDto>();
            CreateMap<CreateUpdateGoodsDto, Goods>();

            CreateMap<UserInfor, UserInforDto>();
            CreateMap<CreateUpdateUserInforDto, UserInfor>();

            CreateMap<Orderinfor, OrderinforDto>();
            CreateMap<CreateUpdateOrderinforDto, Orderinfor>();

            /* You can configure your AutoMapper mapping configuration here.
             * Alternatively, you can split your mapping configurations
             * into multiple profile classes for a better organization. */


        }
    }
}
